package org.eclipse.moquette.server;

import io.netty.util.AttributeKey;

/**
 * 定义每个会话的方法
 * Created by alex on 15-5-29.
 */
public interface ServerChannel {

    Object getAttribute(AttributeKey<Object> key);

    void setAttribute(AttributeKey<Object> key, Object value);

    void setIdleTime(int idleTime);

    void close(boolean immediately);

    void write(Object value);
}
